EntityEvents.death("minecraft:player",event=>{
    event.player.removeAllEffects()
})